import sys
#lst=("sadfsadfsfda 432543543","sadfsfadfsda 6776")
for line in  sys.stdin:
    strList = line.strip().split('\t')
    if(int(strList[1][-1]) %2 ==0):
        strList.append('女')
        print("\t".join(strList))
    else:
        strList.append('男')
        print("\t".join(strList))
